package com.icss.struct.action;

import com.icss.struct.dao.SNSTagDao;
import com.icss.struct.dao.SNSUserDao;
import com.icss.struct.dto.R;
import com.icss.struct.dto.SNSUser;
import com.icss.struct.dto.Tag;

import java.util.HashMap;
import java.util.List;

public class SNSUserAction {


    public Object findalluser(HashMap<String, String> param) {

        System.out.println("-------SNSTagAction@getTop10Tag----------------");
        SNSUserDao dao = new SNSUserDao();

        List<SNSUser> tlist = dao.selectAll(param);
        return R.success(tlist);
    }

    public Object delete(HashMap<String, String> param) {
        String id = param.get("id");
        System.out.println("-------SNSTagAction@delete----------------");
        SNSUserDao dao = new SNSUserDao();

        dao.deleteById(id);
        return R.success(null);
    }
}
